import jdk.nashorn.internal.ir.debug.ObjectSizeCalculator;

public class ObjectiveSize {
    public static void main(String[] args) {
        Animal animal1 = new Animal();
        animal1.legs = 4;
        Animal animal2 = new Animal();
        animal2.legs = 6;
        String string1 = "abcd";
        String string2 = "abcdefg";

        //System.out.println("String = " + ObjectSizeCalculator.getObjectSize(string1));
        //System.out.println("String = " + ObjectSizeCalculator.getObjectSize(string2));
        System.out.println("Animal = " + ObjectSizeCalculator.getObjectSize(animal1));
        System.out.println("Animal = " + ObjectSizeCalculator.getObjectSize(animal2));
    }
}
